//
//  shuixiazidingyitwoTableViewCell.m
//  UI_HLJ_Frame
//
//  Created by  毕宏伟 on 15/7/7.
//  Copyright (c) 2015年 毕宏伟. All rights reserved.
//

#import "shuixiazidingyitwoTableViewCell.h"

@implementation shuixiazidingyitwoTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
     self= [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
       
        self.backView =[[UIView alloc]init];
        
        [self.contentView addSubview:self.backView];
        [_backView release];
        
        self.bigImage =[[UIImageView alloc]init];
        
        [self.contentView addSubview:self.bigImage];
        [_bigImage release];
        
        self.titleLabel =[[UILabel alloc]init];
        
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
        
        self.zuozheLabel =[[UILabel alloc]init];
        self.zuozheLabel.font =[UIFont boldSystemFontOfSize:14];
        [self.contentView addSubview:self.zuozheLabel];
        [_zuozheLabel release];
        
        
        self.priceLabel =[[UILabel alloc]init];
        self.priceLabel.textColor =[UIColor redColor];
        self.priceLabel.font =[UIFont boldSystemFontOfSize:18];
        self.priceLabel.numberOfLines =0;
        [self.priceLabel sizeToFit];
        [self.contentView addSubview:self.priceLabel];
        [_priceLabel release];
        
        
        
        
        
        
        
        
        
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.backView.frame =CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.height-20);
    
    self.bigImage.frame =CGRectMake(10, 10, self.contentView.frame.size.width-20, self.contentView.frame.size.height-80);
    
    self.titleLabel.frame =CGRectMake(10, self.contentView.frame.size.height-70, self.contentView.frame.size.width-100, 30);
    
    self.zuozheLabel.frame =CGRectMake(10, self.contentView.frame.size.height-40, self.contentView.frame.size.width-150, 30);
    self.priceLabel.frame =CGRectMake(self.contentView.frame.size.width-140, self.contentView.frame.size.width-115, self.contentView.frame.size.width/3, 30);
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
